<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>开设课程</title>
<load href= "__JS__/jshelper.js" /> 
		<script type="text/JavaScript">
			function classedit(id){
				window.location.href="__URL__/classedit/id/"+id;
			}
			function classfile(id){
				window.location.href="__URL__/classfile/id/"+id;
			}
			function classdelete(id){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/classdelete');
					postwith('__URL__/classdelete',{id:id});
				}
			}
			function savepath(id){
					postwith('__URL__/savepath',{id:id});
			}
			function addstudent(id){
				postwith('__URL__/addstudent',{id:id});
			}
			function show(){
								var tab=document.getElementById("tab");
								var tr=tab.getElementsByTagName("tr");
							for(var i=0;i<=tr.length;i++){
							if(i%2==0){
								tr[i].style.backgroundColor="#fff";
							}else{
								tr[i].style.backgroundColor="#f0f0f0";	
								}
							}
						}
			window.onload=show;
			</script>
</head>
<body bgcolor="#eeeeee">
<layout name="Auth:header2" />
		<iframe src="__URL__/menu" style="position:absolute; left:40px; top:350px; width:180px; height:190px;" frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no”></iframe>
<div  style="position:relative; top:-70px; left:240px; font-size:12px; width:60%;">
	当前位置：
	<a href='__APP__/index/index'>主页</a>>
	<a href='__URL__/index'>后台管理</a>>
	教学班管理
</div>
<div style=" width:80%" align="right"><a href='__URL__/classadd'>开设教学班</a></div>
				<!--显示教学班-->
				<div id="class_Show" style="width:65%; position:relative; left:240px;">
					<table width="100%" border="0" align="center" cellpadding="0px" cellspacing="0px">
						<thead  style=" background-color:f0f0f0;">
							<tr id="table_class_show_title" height="35px">
								<td style="width:10%">课程序号</td>
								<td style="width:20%">课程名称</td>
								<td style="width:15%" >授课教师</td>
								<td style="width:55%">操作</td>
							</tr>
						</thead>
						<load href"__PUBLIC__/js/list_show.js">
						<tbody id="tab">
							<volist name='list' id='vo' >
								<tr id="table_class_show" height="50px">
									<td style="width:10%">{$vo.number}</td>
									<td style="width:20%">{$vo.cname}</td>
									<td  style="width:15%">{$vo.name}</td>
									<td style="display:none;">{$vo.id}</td>
									<td style="width:55% ; font-size:12px;" >
										<a href="javascript:void(0)" name="classedit" onClick="classedit({$vo.id})" style="color:blue; text-decoration:none">编辑</a>
										<a href="javascript:void(0)" name="delete_class" onClick="classdelete({$vo.id})" style="color:red; text-decoration:none">删除</a>
										<a href="javascript:void(0)" name="savepath"onClick="savepath({$vo.id})"style=" ; color:#7B7B7B; text-decoration:none" >设置上传文件夹</a> 
										<a href="javascript:void(0)" name="classfile" onClick="classfile({$vo.id})" style="text-decoration:none">收作业</a>
										<a href="javascript:void(0)" name="addstudent" onClick="addstudent({$vo.id})" style="text-decoration:none">添加学生</a>
										<!--<input type="button" name="classedit" onClick="classedit({$vo.id})" value="编辑">
										<input name="delete_class" type="reset" onClick="classdelete({$vo.id})" value="删除">
										<input type="button" name="savepath" onClick="savepath({$vo.id})" value="设置上传文件夹">
										<input type="button" name="classfile" onClick="classfile({$vo.id})" value="收作业">
										<input type="button" name="addstudent" onClick="addstudent({$vo.id})" value="添加学生">-->
									</td>
								</tr>
							</volist>
						</tbody>		
					</table>
				</div>	
					<div align="right" class="green-black" style="width:900px;">
						{$page}
					</div>
</body>
</html>